a ripple tank simulation, computed with POV-Ray 3.7.0.beta.33; original
size of render: 300x100 pixels (this is a scaled-up 100x100 excerpt);
frame 6000 of 9999, total computation time for the whole sequence 30
minutes on a Core i7 (7 threads).
Green area indicates wave generator shape; red areas indicate barriers.
(An optimized C program could probably do the whole smash in a matter of
seconds - even a naive attempt does it in about a minute - but that's
not the point :P)
As an interesting side note, although performing bulk mathematical
simulation, the SDL script doesn't use a single function (except for
auxiliary purposes), not a single array, no file #write or #read, and
only a single control statement (an #if, for special treatment of the
very first frame). Virtually all it does is render frame after frame of
the animation.
Post a reply to this message
Attachments:
Download 'wavetank.jpg' (63 KB)
Preview of image 'wavetank.jpg'
|